package design_pattern.immutableMode;

import java.util.stream.IntStream;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/6 8:50
 * @Version 1.0
 */
public class ImmutableClient {
    public static void main(String[] args) {
        //共享数据
        Person person = new Person("Alex", "zhejiang");
        IntStream.range(0,5).forEach(i->{
            new UsePersonThread(person).start();
        });
    }
}
